const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  // transpileDependencies: ["@antv/g", "@antv/g6"],
  devServer: {
    headers:{"Access-Control-Allow-Origin":'*'},
    proxy: {
      '/vsrcyjgl': {
        // target : "http://192.168.3.2:8088",
        // target : "http://192.168.2.104:9677",
        // target: "http://192.168.2.31:9677",
        // target: "http://183.6.117.87:9768",
        // target: "https://gzrsj.rsj.gz.gov.cn/vsrcyjgl",
        target: "https://gzrsj.rsj.gz.gov.cn/vsrcyjgl/test",
        changeOrigin: true,
        pathRewrite: {
          '^/vsrcyjgl': '' // 路径重写，去掉/api前缀
        },
      },
    },
  },
  publicPath: "./",
  outputDir:'admin',
  productionSourceMap: false,
  transpileDependencies: true,
  lintOnSave:false,
  runtimeCompiler: true,
})
